<?php

namespace app\index\controller;

use think\Controller;
use think\Request;

class Common extends Controller
{
    public function __construct(\think\Request $request = null)
    {
        parent::__construct();

        session_start();

        //验证地址
        if (empty($_SESSION['user_id'])) {
            $this->redirect('index/public_controller/login');
        }

    }
}
